package com.system.demo.entity.database;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@TableName()
public class NoticeApplication {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String uid;// 学号

    private String stuName;// 姓名

    private String stuClass;// 年级

    private Integer noticeId;// 申请的对应通知是什么

    private String noticeTitle;// 通知名

    private String url;// 存储的附件url链接

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;// 上传附件的时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadLine;// deadline

    private Integer status;// 0 未提交，2 已提交， 2已审核， 3已驳回

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String  rejectReason;// 驳回理由

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String rejectImage;// 驳回图片
}
